package com.googlecode.stew_faces.demo.example.datagrid;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class DatagridValueHolderBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private List<DatagridRowObject> datalist = new ArrayList<DatagridRowObject>();

	public DatagridValueHolderBean() {
		DatagridRowObject e = new DatagridRowObject();
		getDatalist().add(e);
		e.setId("1");
		e.setName("testname1");
		e.setState("teststate1");
		e = new DatagridRowObject();
		getDatalist().add(e);
		e.setId("2");
		e.setName("testname2");
		e.setState("teststate2");
		e = new DatagridRowObject();
		getDatalist().add(e);
		e.setId("3");
		e.setName("testname3");
		e.setState("teststate3");
		e = new DatagridRowObject();
		getDatalist().add(e);
		e.setId("4");
		e.setName("testname4");
		e.setState("teststate4");

	}

	public List<DatagridRowObject> getDatalist() {
		return datalist;
	}

	public void setDatalist(List<DatagridRowObject> datalist) {
		this.datalist = datalist;
	}

}
